pid=$(ps ax | grep node | grep -w story_server.js | tr -s ' ' | sed 's/^[ \t]*//g' | cut -d ' ' -f 1)
echo $pid
if [ -n "$pid" ]; then
     pm2 kill
     exit 
fi
DATE=$(date "+%Y-%m-%d_%H:%M:%S")
if [ ! -d "log" ]; then
    mkdir "log"
fi
pm2  start  story_server.js --name product  --kill-timeout 3000 -o ./log/Web.$DATE.log -e ./log/err.log  --merge-logs   --log-date-format="YYYY-MM-DD HH:mm:ss.SSS"